﻿//=====================================================================================================
// LocalizationLibrary
// The Localization Library is a collection of reusable software components that provide 
// support for localization. This library enables you to localize WPF, Silverlight and WP7 applications.
// (http://localizationlibrary.codeplex.com)
//=====================================================================================================
// Author: Nicola Gallo (Website: www.nicola.gallo.name, Email: nicolagmt@hotmail.it) 
//=====================================================================================================

namespace LocalizationLibrary.Tests.Core.SystemExtensions
{
    //.NET References
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Text;
    
    //LocalizationLibrary References
    using DeployPackA.Tests.LocalizationModels;
    using LocalizationLibrary;
    //Microsoft References
    using Microsoft.VisualStudio.TestTools.UnitTesting;

    [TestClass]
    public class ObjectExtensionTest
    {
        [TestMethod]
        public void Invoke_RaiseOnPropertyChangeMethod_Method()
        {
            bool invoked = false;
            TestPropertyLocalizationModel instance = new TestPropertyLocalizationModel();
            instance.PropertyChanged += (_sender, _e) => 
                {
                    invoked = true;
                };
            instance.RaiseOnPropertyChangeMethod("TestProperty");
            Assert.AreEqual(invoked, true);
        }
    }
}
